﻿using System;
using System.Collections.Generic;
using BCCommon.Enums;
using BCCommon.PaymentEnums;
using MongoDB.Bson.Serialization.Attributes;

namespace BCDto.Common.Payment.Payment
{
    /// <summary>
    /// 支付二维码模型
    /// </summary>
    public class PaymentQRCodeDto
    {
        /// <summary>
        /// 支付渠道Id
        /// </summary>
        public PaymentChannelType PayChannelType { get; set; }
        /// <summary>
        /// 支付token
        /// </summary>
        public string Token { get; set; }
        /// <summary>
        /// 过期时间
        /// </summary>
        [BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime ExpireTime { get; set; }
        /// <summary>
        /// 商户订单号
        /// </summary>
        public string OutTradeNo { get; set; }
        /// <summary>
        /// 订单金额
        /// </summary>
        public decimal Amount { get; set; }
        /// <summary>
        /// 二维码地址
        /// </summary>
        public string QRUrl { get; set; }
        /// <summary>
        /// 账单
        /// </summary>
        public Dictionary<string,decimal> Bill { get; set; } = new Dictionary<string, decimal>();
    }
}
